package com.todo.biz.application.remote;

import com.todo.common.common.entity.response.BizResponse;
import com.todo.strategy.online.service.api.response.PlatformStrategyBaseResponse;
import com.todo.strategy.online.service.api.response.PlatformStrategyDetailResponse;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/2/27 22:36
 * @description
 */
@FeignClient(name = "todoOnlineStrategyService", url = "http://localhost:18004")
public interface PlatformStrategyRemoteService {

    @Operation(summary = "根据id查询平台策略信息")
    @PostMapping("/api/platform/strategy/queryPlatformStrategyById")
    BizResponse<PlatformStrategyBaseResponse> queryPlatformStrategyById(@RequestBody Long platformStrategyId);


    @Operation(summary = "根据id查询平台策略详情")
    @PostMapping("/api/platform/strategy/queryPlatformStrategyDetailById")
    BizResponse<PlatformStrategyDetailResponse> queryPlatformStrategyDetailById(@RequestBody Long platformStrategyId);


    @Operation(summary = "根据id列表查询平台策略信息")
    @PostMapping("/api/platform/strategy/queryPlatformStrategyList")
    BizResponse<List<PlatformStrategyBaseResponse>> queryPlatformStrategyList(@RequestBody List<Long> platformStrategyIdList);
}
